class CreateHistoricodts < ActiveRecord::Migration
  def self.up
    create_table :historicodts do |t|
      t.references :historico, :transporte, :deposito, :status, :null => false
      t.integer :cxs, :limit => 15, :null => false, :default => 0
      t.integer :pares, :limit => 15, :null => false, :default => 0
      t.integer :box, :null => false, :default => 0
      t.timestamps
    end
  end

  def self.down
    drop_table :historicodts
  end
end
